package com.hegaoye.mqhandler;

import com.hegaoye.base.RabbitmqConfig;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * Created by lixin on 2019/6/29.
 */
@Slf4j
@Component
@RabbitListener(queues = RabbitmqConfig.ORDER_QUEUE_NAME)
public class OrderReceiver {
    @RabbitHandler
    public void process(String msg) {
        log.info("OrderReceiver >> " + msg);
    }
}
